<template>
  <div class="skill-list">
    <div class="item">
      <div class="left">
        <div class="up">
          {{ item.title }}
        </div>
        <div class="down">
          <div class="time">{{ item.created_at | getTime }}</div>
          <div class="see">
            <i class="iconfont iconicon_liulanliang"></i>{{ item.read }}
          </div>
          <div class="star">
            <i class="iconfont iconbtn_dianzan_small_nor"></i>{{ item.star }}
          </div>
        </div>
      </div>
      <div class="right">
        <img :src="baseURL + item.cover" alt="" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'skillList',
  props: ['item'],
  data () {
    return {
      baseURL: process.env.VUE_APP_URL
    }
  }
}
</script>

<style lang="less">
.skill-list {
  .item {
    display: flex;
    padding: 20px 15px;
    .left {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      font-size: 12px;
      .up {
        font-size: 16px;
        font-weight: 500;
        line-height: 23px;
      }
      .down {
        display: flex;
        align-items: center;
        .time {
          flex: 1;
        }
        .see {
          display: flex;
          align-items: center;
        }
        .star {
          margin-left: 21px;
          display: flex;
          align-items: center;
        }
      }
    }
    .right {
      margin-left: 16px;
      width: 113px;
      height: 75px;
      img {
        width: 113px;
        height: 75px;
      }
    }
  }
}
</style>
